<?php

namespace app\company\model;

use app\common\model\BaseModel;
use think\model\relation\HasMany;

class CompanyAuth extends BaseModel
{
    public function authMenu(): HasMany
    {
        return $this->hasMany(CompanyAuthMenu::class, 'company_auth_id','id');
    }

    public function userAuth(): HasMany
    {
        return $this->hasMany(CompanyUserAuth::class, 'company_auth_id','id');
    }
}